home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 27 / CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso / CUCD / Programming / THXPlayLib / src / makefile < prev    next >
Encoding:
Makefile  |  1998-06-18  |  1.5 KB  |  74 lines

  1. CP = copy QUIET DATES
  2. RM = delete QUIET FORCE
  3. ASM = PhxAss QUIET
  4. O2M = o2m >NIL:
  5. BUMP = bumprev >NIL:
  6. ADOC = autodoc -a -s -C -I
  7.  
  8. RELEASE    = 5
  9.  
  10. FILES =    thx-play.m thx-play_020.m \
  11.     thxplay.library thxplay.library.020 \
  12.     thxplay.o thxplay_020.o \
  13.     thxplay.doc thxplay.guide
  14.  
  15. SRCS =    thxplay.asm init.asm song.asm volume.asm \
  16.     multisong.asm note.asm misc.asm \
  17.     library.asm thxplay.library_rev.i
  18.  
  19. all: $(FILES) 
  20. clean:; $(RM) $(FILES)
  21. dist: all install; $(RM) $(FILES)
  22. install: $(FILES)
  23.     $(CP) thxplay.library(%|.020)    /
  24.     $(CP) thx-play(%|_020).m    /developer/E/tools/
  25.     $(CP) thxplay(%|_020).o        /developer/lib
  26.     $(CP) thxplay.doc        /developer
  27.     $(CP) thxplay.guide        /
  28.     make -C /developer remake
  29.  
  30. #-----------
  31. # the documentation
  32.  
  33. thxplay.doc: $(SRCS)
  34.     $(ADOC) $^ > $@
  35.  
  36. thxplay.guide: thxplay.doc
  37.     doc2guide thxplay
  38.  
  39. #-----------
  40. # the E interface
  41.  
  42. thx-play.m: $(SRCS)
  43.     $(ASM) NOEXE $< set STACKARGS,ENAMES TO thx-play.o
  44.     $(O2M) thx-play
  45.     $(RM) thx-play.o
  46.  
  47. thx-play_020.m: $(SRCS)
  48.     $(ASM) NOEXE $< set USE020,STACKARGS,ENAMES TO thx-play_020.o
  49.     $(O2M) thx-play_020
  50.     $(RM) thx-play_020.o
  51.  
  52. #-----------
  53. # the link library
  54.  
  55. thxplay.o: $(SRCS)
  56.     $(ASM) NOEXE $< set STACKARGS,CNAMES TO $@
  57.  
  58. thxplay_020.o: $(SRCS)
  59.     $(ASM) NOEXE $< set USE020,STACKARGS,CNAMES TO $@
  60.  
  61. #-----------
  62. # the shared library
  63.  
  64. thxplay.library: thxplay.asm $(SRCS)
  65.     $(ASM) EXE $< set LIBRARY TO $@
  66.  
  67. thxplay.library.020: $(SRCS)
  68.     $(ASM) EXE $< set LIBRARY,USE020 TO $@
  69.  
  70.  
  71. thxplay.library_rev.i:
  72.     $(BUMP) $(RELEASE) thxplay.library
  73.     $(RM) thxplay.library_rev.h
  74.